package com.gs.netty.client.reflect.handler;

import com.gs.netty.client.Message;
import com.gs.netty.client.SendResult;
import com.gs.netty.client.remoting.WebSocketClient;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class WebSocketClientInvocationHandler implements InvocationHandler {
    // 客户端
    private WebSocketClient webSocketClient;

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        Message message = new Message();

        SendResult send = webSocketClient.send(message);
        return null;
    }
}